class dataDir:
    datalist = []

    def getList(self):
        return self.datalist

    def insert(self, id, name, class_name, url):
        newDirt = {'id': id, 'name': name, 'class_name': class_name, 'url': url}
        self.datalist.append(newDirt)

    def delete(self):
        return self.datalist.clear()
